package com.atomy.bigeventsservice.map;

import com.atomy.bigeventsservice.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from users where username=#{username} and password=#{password}")
    User login(User user);

    @Select("select * from users where username=#{username}")
    User searchUser(User user);
    @Insert("insert into users(username,password) values (#{username},#{password})")
    void insert(User user);

}
